<?php

namespace App\Models\Manger;

use App\Models\CompanyUserDinding;
use Illuminate\Database\Eloquent\Model;

class Manger extends Model
{
    protected $table = 'manger';
    public $timestamps = false;
    protected $primaryKey = 'id';
    protected $guarded = ['_token'];


    public function cpduserinfo(){
        return $this->hasOne(CompanyUserDinding::class,'id','cpd_user_id');
    }

    public function department(){
        return $this->hasOne(MangerDepartment::class,'id','sys_dpm_id');
    }
}
